Repository navigation
feat(fields): typed values edit flat in their list cell, record pickers open in place, a rating is set by key (#35688 S3) - #36045
Conversation
…esk text Claude-Session: https://claude.ai/code/session_01L6bhgTJobxYSxskrNbCuHE Co-authored-by: Claude <noreply@anthropic.com>
…set in place Claude-Session: https://claude.ai/code/session_01L6bhgTJobxYSxskrNbCuHE Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgTJobxYSxskrNbCuHE Co-authored-by: Claude <noreply@anthropic.com>
… the rating set in place Claude-Session: https://claude.ai/code/session_01L6bhgTJobxYSxskrNbCuHE Co-authored-by: Claude <noreply@anthropic.com>
…the in-cell list (#35688) The cell's lookup editor is now the candidate list itself, so the three grid picker suites (#7154, #7165, #7166) open the cell and read the list instead of pressing a trigger first. Their claims stay: dependsOn gates and scopes, multiple accumulates, allowCreate, lookupPageSize via Browse all, and the descriptionField / lookupColumns / lookupFilters keys. Browse all (the full record picker) was beside the form trigger only; the in-cell face now carries it too, gated like the list. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgTJobxYSxskrNbCuHE
…st theme (#36023) The console's theme rounds and lifts every [role=dialog] with !important, and the editor layer is a Radix popover, so the flat input face drew a 20px radius and a shadow in the browser. The face's radius and shadow utilities now carry the important modifier; an important utility sits in a cascade layer and outranks the unlayered theme rule. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgTJobxYSxskrNbCuHE
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgTJobxYSxskrNbCuHE
A single lookup pick in a grid cell is now the whole edit (#35688), so the two exit-mode cases that pinned the popover era (pick stages, click-outside commits; Enter on the trigger) pin the in-cell list instead: a pick lands and closes the editor, and a press inside the open list keeps it while a press outside exits. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgTJobxYSxskrNbCuHE
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Posted 2026-11-21T11:31Z. The brief handed to the isolated declaration-face reviewer for PR #36045 (owed by the changeset's Contract review brief — PR #36045 @
|
|
repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP 维护者速读
席位核对 — REWORK (L1-c) · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Contract reviewServed-tier: Face: declaration, owed by the Gate verdicts on the head: every check-run is ① Derived judgments
② Semver level
③ Boundary flags
No must-fix. F1–F3 are should-fix items with named owners (the seat for F1, S4's claim 7060668598 for F2, S4 or a follow-up for F3). They do not hold this head. Implemented-by: VERDICT: PASS |
In a list cell, Browse all's dialog handed a single pick to onChange only, so the editor stayed open with the value staged. The pick now commits as a pick from the in-cell list does, after the declared targets fill; a multiple pick still stages. Pinned through ObjectGrid to ds.update. Also: the rating scale fact is floored before its > 0 test, and its doc says a digit sets at most 9; the changeset says recents rings start empty once after the per-user key. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgTJobxYSxskrNbCuHE
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Contract reviewServed-tier: This is a delta of the PASS record on
The face is unchanged: declaration, owed by The merge is clean. Gate verdicts on ① Derived judgments
② Semver levelUnchanged. ③ Boundary flags
No new finding. No must-fix and no open should-fix: F3 is resolved in code, and F1 and F2 have a named owner in S4 (PR #36054). Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP 维护者速读
席位核对 — ACCEPT (L1-c) · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Seat landing · 2026-11-21T12:07Z · The #35688 S3 PR (thread b1-I7): typed values (number, currency, percent, email, URL, phone) edit as a flat box inside their list cell, record pickers open in place, and a rating cell is set by key; it folds #35794 (claim 7061527510). |
… 「+ Add calculation」 always shown in the footer (objectstack-ai#36048) (objectstack-ai#36069) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuDWLrm1NrVxDWXCHsUrtL24)_ Fixes objectstack-ai#36048 repo:objectstack#1 · os-sales · session_01L6bhgVphzAHrHnMrSMZGYb Clause-②: no (no export, prop or key added; one existing i18n value changes its wording) Metadata-protocol: none ## 维护者速读 - 列表页(比如「客户」)的表格:列与列之间多了一条和横线一样浅的竖线;默认行高和表头从 32 变成 36;底部一行里没选统计的列一直显示浅色的「+ 添加统计」,不用鼠标移上去。 - 这是列表页重做专题的观感改进(对照 Attio 的第 5、7、8 条)。 - 只改样子,不动数据和统计的存储;包里带的视图和没有权限的人仍然看不到入口。撤回这个 PR 即恢复原样。 - 无。 ## What changes | Item | Where | Before → after | |---|---|---| | Column lines | `OBJECT_GRID_TABLE_DENSITY` in `ui/packages/plugin-grid/src/ObjectGrid.tsx` | none → a 1px inset shadow on the right edge (`inset-shadow-[-1px_0_0_0]` in `border/50`, the row lines' colour and weight) on every header, body and footer cell but the last one | | Default row | `rowHeightCellClass`, `compact` arm, same file | `h-8` (32px) → `h-9` (36px); `short`, `medium`, `tall`, `extra_tall` unchanged | | Header | `OBJECT_GRID_TABLE_DENSITY` | `[&_thead_th]:h-8` → `h-9` (36px) | | Footer entry | `SummaryCellPicker` in `ui/packages/plugin-grid/src/objectGridSummaryPicker.tsx` | hint `opacity-0` until hover/focus → always shown, faint (`text-muted-foreground/70`), a `Plus` icon before it, darker on hover/focus | | Entry text | `grid.summary.calculate` in the 11 locale packs + the plugin's English default in `useColumnSummary.ts` | 「计算」/ Calculate → 「添加统计」/ Add calculation (zh-Hant 新增統計, ja 集計を追加, ko 계산 추가, de Berechnung hinzufügen, fr Ajouter un calcul, es Añadir cálculo, pt-BR Adicionar cálculo, ru Добавить расчёт, ar إضافة حساب) | - The row-height menu has three densities (Compact / Standard / Spacious). A view with no `rowHeight` lands on Compact, which is the card's "default", so Compact is the density that moves to 36. Standard (44) and Spacious (56) are unchanged. The seat's claim records this reading. - The frozen column draws no divider at rest today (objectstack-ai#35548: a scroll shadow, none at rest). With this PR its edge is an ordinary column line at rest and keeps the shadow on top of the line once the rows scroll sideways under it. - **Why a shadow, not a border (L1-b S1, 7062990450).** The first head (`b5445c21`) drew the line as `border-r`. The table collapses its borders, and a collapsed border belongs to the table, not the cell: measured on 商机 at 900px wide, scrolled 120px sideways, the frozen checkbox and name columns lost their lines (the scrolling columns' lines did not paint over the frozen cells). An inset shadow is the cell's own, so the sticky cells carry it with them, and Tailwind composes it with `FROZEN_EDGE_SHADOW` in one `box-shadow` (both layers read back in the browser while scrolled). It also takes no width, so the column widths do not move. - The footer row stays 32px, as the claim states. - Who sees the entry is unchanged: the menu is wired only where the host passes `onColumnSummaryPick` (a reader who may change the view; objectstack-ai#35933 keeps it off views a read-only package ships). Without it an empty footer cell still draws nothing. - Every embedded `object-grid` follows the new default. Related-list body tables use their own `BODY_TABLE_DENSITY` and are not touched; the phone list draws cards. ## Tests - `ui/e2e/list-frame-geometry-35548.spec.ts` (Playwright, compiled Tailwind against the real class sources, with the app's `--color-border` in the theme so both lines resolve to a real colour): header 36 and rows 36 (was 32 / 33), first row top still ≤ 168; new case: the header, body (the leading checkbox cell included) and footer cells carry exactly one inset shadow, `-1px 0px 0px 0px`, in the row line's computed colour, and no right border; the last cell of each carries none. 8/8 pass. - Ablation at `0a1f7470`: with the column-line entry deleted from `OBJECT_GRID_TABLE_DENSITY` (`scripts/ablation-replace.mjs`, mutation landed anchor 1 → 0), the new case goes red (`header: one column line`), the other 7 pass; restored, blob equals HEAD and `git diff HEAD` empty. - `rowHeightOffSpecBoundary.test.tsx`: the `compact` copy now carries `h-9`; it still differs from `short` by its leading, so all five densities keep their own copy. - `footerCalculationPicker-35702.test.tsx`: the hint reads 「Add calculation」 and carries no `opacity-0` at rest; a reader without `onPick` sees no 「Add calculation」 in the footer. ## Acceptance notes - In the browser the footer row measures 32.5px on a view that offers the menu (the picker button's own `h-8` plus the row's line) and 32 on one that does not; main measures the same, so this PR leaves it. - Overlap: objectstack-ai#36045 (in-cell editors), objectstack-ai#36024 (phone list, same e2e file) and objectstack-ai#36054 also edit `ObjectGrid.tsx`; `overlap-check.mjs` reads all of them as merging cleanly at this head. The seat's landing order puts this PR after objectstack-ai#36024 and objectstack-ai#36045; this PR merges main and moves the pins then. - objectstack-ai#36045 pins its in-cell inputs at `h-8`; in the 36px row an edit measured 36 on main + this PR (below). Re-measure after objectstack-ai#36045 lands. ## Verification Read first, by risk: (1) `OBJECT_GRID_TABLE_DENSITY` — it reaches every cell of every `object-grid`; (2) the `compact` arm of `rowHeightCellClass`; (3) `SummaryCellPicker`'s hint. Two-minute check: open the 客户 list, add a personal view (switcher → 添加视图 → 我的视图), and the footer shows 「+ 添加统计」 under every column with a line between columns. <details><summary>Browser readings (app-crm, 1440×900, zh-CN, light and dark)</summary> Booted `objectstack dev --ui --seed-admin` from this branch (readings re-taken at `0a1f7470`) with the console built, then again with the three source files and the locale packs at `origin/main` (`8145424b`) for the "before" set. Measured with `getBoundingClientRect` / `getComputedStyle` in Chromium. | Reading | main | this PR | |---|---|---| | Header row height | 32 | 36 | | Data row height (Compact, the default) | 32 | 36 | | Standard, then back to Compact | — | 44, then 36 | | Double-click 年营收 to edit (editor focused) | — | rows stay 36 | | Column line (a body cell's right border) | 0px | 1px, same colour as the row line (light and dark) | | Footer, a personal view | 「计算」 on hover only | 「+ 添加统计」 in all four columns; clicking one opens the calculation menu (合计 … 无) | | Footer, the package's 所有记录 view | 「3 条记录」 only | 「3 条记录」 only (no entry) | | 商机 at 900×700, scrolled 120px sideways (frozen checkbox + name) | — | at `b5445c21` (border): the frozen columns' lines gone; at `0a1f7470` (inset shadow): both frozen lines stay, the name column's edge also carries `FROZEN_EDGE_SHADOW`, nothing paints over the frozen cells (light and dark) | Screenshots (before / after, light and dark, package view and personal view, the open footer menu, an edit in progress) are kept with the card's evidence for the reviewer (`build-seat1/36048/`). </details> <details><summary>Local gates</summary> - `pnpm --filter @object-ui/plugin-grid type-check`: pass. - `vitest run packages/i18n/ + the two plugin-grid files above`: Test Files 107 passed (107), Tests 1998 passed, 13 skipped. - `playwright test e2e/list-frame-geometry-35548.spec.ts --project=chromium` at `0a1f7470`: 8 passed. - `overlap-check.mjs --branch=HEAD`: VERDICT clean (main and 6 PR heads). - NOT MEASURED locally: the full `packages/plugin-grid/` vitest run (over the foreground limit here); CI's Test Core runs it. </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgVphzAHrHnMrSMZGYb --- _Generated by [Claude Code](https://claude.ai/code/session_01L6bhgVphzAHrHnMrSMZGYb)_ <!-- signed: repo:objectstack#1 · os-sales · session_01L6bhgVphzAHrHnMrSMZGYb --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…ears, a refused value stays, and Enter stays on the cell (objectstack-ai#36023 S4) (objectstack-ai#36054) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuYSfiVTtk3DgbcGUxvr9M3o)_ repo:objectstack#1 · os-sales · session_01L6bhgTBQ7DZYZt5GQadGKZ Part of objectstack-ai#36023 (slice S4: pop-up panels under the cell and the keyboard rules. The card stays open: the rich-text panel, the related-list tab and the long-text / address placement are recorded on objectstack-ai#36023 by the seat, which closes the card when they are delivered or moved) Clause-②: yes (widening) — `GridCellFacts` (`@object-ui/components`, `dist/context/gridCellSelection.d.ts`) gains three optional keys: `editor`, `clearRefusal`, `validate`. Nothing is removed or narrowed; a host that sets none of them keeps its editor placement and commits. Metadata-protocol: none ## 维护者速读 - **选择型格子的面板开在格子下方**:单选、多选、状态、标签、日期、日期时间、时间、颜色、关联、人员,按回车或双击后,列表/日历/色板出现在格子正下方,格子本身照常显示原值(彩色标签还是彩色的),整行高度不变(实测 33 → 33)。日期的可输入框移到面板顶部,日历就在它下面。长文本、地址、普通输入框仍在原格编辑。 - **退格 / Delete 直接清空并立即保存**。必填字段不清空,格子上提示「××为必填」;只读格照旧说明原因;复选框格不受影响。 - **不合规的值不保存**:规则和记录表单一样(必填、长度、范围、邮箱和网址格式),数字框里读不出数字的文本也拒绝。编辑框保持打开,留着刚输入的内容,下方写明原因;改对再提交,或按 Esc 放弃。拒绝状态下点别处不生效。 - **回车保存后留在原格**(Sales 裁定 D2,7060745834)。这**反转了已合并的 objectstack-ai#35687「回车保存并下移」**,单独一个 commit;Tab / Shift+Tab 仍保存并右移 / 左移。 - **选中框不再画到冻结列上**,Esc 取消选中后不再留下浏览器默认的(macOS 上是橙色的)焦点框。 - **人员头像不再撑高行**:原来 32px 头像让行高变 41px,编辑时又掉回 33(行高跳动);现在头像 24px,行高始终 33。 - 表单、对话框、记录页的控件不变。手机宽度(375)列表画成卡片,没有格子,本切片不涉及。 ## What changes **Host facts** (`@object-ui/components`, `context/gridCellSelection.tsx`). `GridCellFacts` gains: - `editor?: 'cover' | 'below'` — `below` draws the cell's editor as a panel under the cell, which keeps drawing its value; absent or `cover` keeps the layer over the cell. - `clearRefusal?: string | null` — why Backspace / Delete leave the cell as it is. - `validate?: (value) => string | null | undefined` — why a committed value is refused. The table cannot tell a select column from a text one (`TableColumn.type` has eight literals), so the placement is a host signal. `ObjectGrid.describeCell` (`objectGridCellFacts.ts`) answers all three from the field definition: `inlineEditorPlacement(type)` (select, status, radio, multiselect, checkboxes, tags, date, datetime, time, color, lookup, master_detail, user, owner → `below`), `clearRefusalText` (a required field; `required_message` or `validation.required`), and `cellValueRefusal`, which reads the record form's own `buildValidationRules` (required, min/max length, min/max, email / URL pattern) and says each with the form's sentence. **Panel under the cell** (`dataTableCellOverlay.tsx`, `data-table.tsx`). `CellOverlay` takes `placement`; `below` offsets the layer 2px under the cell instead of minus the cell's height, and the cell keeps its drawn value while the panel is open. No preview size is seeded for a panel. **Date panel** (`@object-ui/fields`, `DatePickerField.tsx`). The in-cell face is one panel: the typeable box on top, the calendar always showing beneath it (the panel root gives it the panel's surface and centres it over the quick picks; the calendar's own `className` literal stays as the phone-touch spec reads it), then the time row (datetime) and Today / Tomorrow / Next week / Clear. The form face is unchanged. **Backspace / Delete** on a selected cell write `null` through the same `writeCell` path a paste uses (confirm, stage, save), except a two-state cell (nothing written) and a cell with `clearRefusal` (its sentence shows on the cell; nothing written). A read-only cell says why, as before. **A refused commit** — `saveEdit` now returns whether it committed. Before staging, the select-first table asks `editRefusalOf`: first the browser's own reading of the editor's inputs (`validity.badInput` / `typeMismatch` → `table.cellNotNumber`, `validation.email`, `validation.url`, `table.cellInvalid`), then the host's `validate`. A refusal keeps the editor open with what was typed, puts the focus back in it and draws the reason under it (`role="alert"`, `data-testid="cell-edit-refusal"`). Enter / Tab do not move; a press outside is swallowed (pointerdown and its click); Escape discards. The refusal line hides as soon as the value is edited. **Enter stays on the cell** (own commit `383cbb2a`). `commitMoves` replaces `moveSelection`: Enter commits and refocuses the selected cell; Tab / Shift+Tab commit and move right / left. **Frame and focus ring.** The selected cell's frame is a child span (`data-slot="cell-selection-frame"`, `absolute inset-0 border-2 border-primary`, `z-[1]`) instead of the cell's outline: an outline painted over a frozen column the cell had scrolled under, a child paints in the cell's layer, which the sticky `z-10` columns cover. Select-first cells are `outline-none`, so the cell that keeps the focus after Esc deselects shows no ring. **User cell face** (`@object-ui/fields`, `UserCellRenderer`). The avatar is `size-6 -my-0.5` (24px drawn, 20px laid out) in both the single and the stacked branch, so it is no taller than the cell's line of text. `@object-ui/i18n` adds `table.cellNotNumber` and `table.cellInvalid` in all 11 packs (zh-Hant regenerated with `scripts/gen-zh-hant.mjs`). ## Reversal of objectstack-ai#35687 (merged), named per the ruling Two objectstack-ai#35687 behaviours are reversed: 1. **Enter in an editor saves and moves down → saves and stays on the cell** (Sales D2, 7060745834). 2. **Backspace / Delete open an empty editor without saving → clear and save at once; a required field refuses** (objectstack-ai#36023 S4 scope item 3). Tests migrated (`ui/packages/components/src/__tests__/data-table-keys-35687.test.tsx`): - "Enter commits and moves down …": now expects the selection to stay on `0:0` with the focus on the cell, then Tab → `0:1`, Shift+Tab → `0:0`. - The multi-line editor case: Ctrl/Cmd+Enter commits and stays (`0:2`). - "Backspace opens an empty editor" removed; replaced by the clearing cases below. Sentences on objectstack-ai#35687 to reword (the seat edits the card text): | Where on objectstack-ai#35687 | Now reads | Reword to | |---|---|---| | 要做的 › 编辑时 | 回车:保存并下移一格。 | 回车:保存并留在原格。 | | 要做的 › 未编辑 | 退格、Delete:进入编辑并清空,不直接保存。 | 退格、Delete:清空并立即保存;必填字段不清空并提示。 | | 验收 (Safari / Chrome pinyin) | …单元格里是「中」字并仍在编辑;再按回车才保存。 | …单元格里是「中」字并仍在编辑;第二次回车保存并留在原格。 | | 验收 | 编辑中按 Tab:保存并选中右边一格;按回车:保存并选中下面一格。 | 编辑中按 Tab:保存并选中右边一格;按回车:保存并留在原格。 | | 验收 | 选中必填的金额格按退格:进入编辑且为空,没有发保存请求。 | 选中必填格按退格:值不变,格上提示必填,没有发保存请求。 | ## Tests - `data-table-keys-35687.test.tsx`: new describe "clearing, the panel under the cell, a refused commit (objectstack#36023)", 10 cases — Backspace / Delete clear and save; a `clearRefusal` keeps the value and says why; a two-state cell writes nothing; a read-only cell is not cleared; `below` vs `cover`; a host refusal keeps editor and input and Enter does not move, then Tab after correcting moves; Escape after a refusal discards; `badInput` refused by the table; a press outside a refused injected editor is swallowed (control: an accepted value commits); the frame is a child under frozen columns and Esc leaves no ring. - `data-table-select-first-35684.test.tsx`: the ring assertion reads the frame child instead of `outline-primary`. - `objectGridCellFacts-35684.test.ts`: placement per type, `clearRefusalText`, `cellValueRefusal` (required, length, range, pattern, messages). - `ObjectGrid.cellSelection-35684.test.tsx`: a select cell opens below and keeps its value; a required cell refuses Backspace; a `maxLength` refusal keeps the editor. - New `userCell.rowHeight-36023.test.tsx`: single and stacked faces are `size-6 -my-0.5`, never `size-8`. - Local runs: `@object-ui/components` + `@object-ui/plugin-grid` full (793 files) passed; `@object-ui/fields` + `@object-ui/i18n` full 6723 passed / 20 skipped; form-field channel census (3 files, 141) passed; `turbo run type-check` for components, fields, plugin-grid, i18n: 57/57; eslint on every changed file: 0 errors; `check:i18n`, `check:i18n-coverage`, `check:i18n-walk-parity`, `check:i18n-stale-fill`, `check:i18n-keys`, `check:i18n-dead-keys`: pass. ## Verification (browser) Showcase field zoo, a temporary 22-column probe view with the name column frozen (not in this PR), Chromium, light and dark, 1280 and 768. Shots: `/mnt/project-files/build-seat1/36023/S4/shots/`. | Kind | Placement | Row before → while open | Panel top vs cell bottom | |---|---|---|---| | date, datetime, time | below | 33 → 33 | 227 vs 225 | | select, multi-select, tags | below | 33 → 33 | 227 vs 225 | | colour | below | 33 → 33 | 227 vs 225 | | lookup, user | below | 33 → 33 | 227 vs 225 | | long text, address, email | cover (in place) | 33 → 33 | — | The same at 768 (date, select, multi-select, user) and in dark (date, select, tags, colour, long text). At 375 the list draws as cards, so there is no cell to edit. Keyboard journeys (1280): Enter on a text cell saves and stays (`1:2`, focus on the cell), Tab moves to `1:3`; number "1e" is refused with "Enter a number.", a click away keeps the editor, Esc restores 420; Backspace on phone clears it to "—"; Backspace on the required name says "Name is required"; Esc twice leaves no outline (`outline-style: none`, was the browser's `auto` ring). Frozen column: a selected cell scrolled under the frozen name column — before, its outline was drawn over the name column; after, the frame is clipped at the column's edge like the cell's text (`frozen-1-2-scrolled.png`). User face: a row holding "Dev Admin" — before 41px at rest and while editing, face 32px; after 33px at rest, while editing and after Esc, face 24px (`avatar-after-rest.png`). ## Acceptance notes - **Required rating, handed over from S3 (done after objectstack-ai#36045 merged).** `main` is merged in (S3 1c87956). The rating's Backspace / Delete and the `0` key all go through `clearCell` (`setStars(0)` is a clear), so a required rating keeps its stars and says it is required; a digit above zero still sets the stars. Pinned in `data-table-cell-overlay-35688.test.tsx` ("a required rating is never cleared: 0, Backspace and Delete …"), next to S3's own rating cases, which pass unchanged. - **No second sentence for a number box.** S3's in-cell number, currency and percent boxes draw their own bad-input line under the box and mark it `aria-invalid`. For such a box the table refuses the commit without adding its own line (`editRefusalOf` returns `''`), so the reader sees one reason, not two. Pinned in `data-table-keys-35687.test.tsx`. - **DELIBERATE CORRECTION of a pending release note** (`Check Changeset` stays red on it by design; the seat confirms it by its own record). Note: `.changeset/35684-35687-list-cells-select-first.md` (from objectstack-ai#35747, not yet released). This PR changed the behaviour two of its sentences describe, so they are rewritten in commit df048a4 rather than left false in the same release: - "Backspace or Delete opens an empty editor and saves nothing." → "Backspace or Delete clears the cell and saves at once, and a required field keeps its value and says it is required (objectstack#36023)." - "While editing, Enter commits and moves down, Tab and Shift+Tab commit and move right and left, …" → "While editing, Enter commits and stays on the cell (objectstack#36023), Tab and Shift+Tab commit and move right and left, …" Nothing else in that note changes; restoring it from the base would republish the two false sentences. - The lookup and user record lists inside the panel are S3's (objectstack-ai#36045); this slice only places them below. - A refused value whose cell scrolls out of sight is discarded (the scroll-away path closes the editor as before, and a refused value is not saved). - While a refused value is open, a press outside does nothing (pointerdown and the click it starts are swallowed for one second at most). - Overlap: the release PR objectstack-ai#35129 rewrites the same pending changeset and regenerates itself. S3 objectstack-ai#36045 has merged and `main` is merged in here (conflicts in `data-table.tsx`, the Backspace / digit branch, and `dataTableCellOverlay.tsx`, the layer classes, resolved by keeping both sides). objectstack-ai#36033 still overlaps `data-table.tsx`; the second of the two to land merges `main`. ## How to try it Open any object list, select a select or date cell and press Enter (the panel opens under the cell; the cell still shows its value). Press Backspace on an optional cell (cleared and saved) and on a required one (refused with a hint). Type a too-long value into a text field with a max length and press Enter (the editor stays and says why). ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (not touched) - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes. - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: n/a. - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English (the 维护者速读 block and the objectstack-ai#35687 sentences are in the maintainer's language). - [x] The *Before Submitting* list in CONTRIBUTING.md is done. --- _Generated by [Claude Code](https://claude.ai/code/session_01L6bhgTBQ7DZYZt5GQadGKZ)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgTBQ7DZYZt5GQadGKZ <!-- signed: repo:objectstack#1 · os-sales · session_01L6bhgTBQ7DZYZt5GQadGKZ --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Fixes #35688
Part of #36023
Fixes #35794
Requested by Sales · project thread
repo:objectstack#1 · os-sales · session_01L6bhgTJobxYSxskrNbCuHE
Slice S3 of #35688 (S1 #35990 and S2 #36018 merged), folded with the in-place input part of #36023. #36023's remaining work, which this PR leaves alone, runs in parallel slices: S4 covers Enter/Esc, panels below the cell and the validation popover; S5 covers the form line-item grid. #35794's two text fixes ride along (claimed into this PR, comment 7061527510).
Clause-②: yes (widening):
GridCellFacts(exported from the@object-ui/componentsentry) gains one optional key,stars?: number, measured on the builtdist/context/gridCellSelection.d.ts. Nothing is removed or narrowed. No i18n key is added.Metadata-protocol: none
维护者速读
What changes
Flat in-cell input face (
@object-ui/fields):InCellTextInput(widgets/InCellTextInput.tsx, not on the package entry). Its height is the layer's anchor height less the 2px frame, with no border, fill or radius, 13px text and the cell's inset. An invisible copy of the text sizes the box and the input lies over it, so thew-maxlayer widens to the right without the input's intrinsic width inflating it. Props:align(end= right-aligned tabular digits),leadingandtrailing(muted adornments), andbelow(a refusal line inside the layer).TextField(except password, textarea and currency-code branches),EmailField,PhoneField,UrlField,NumberField,CurrencyFieldandPercentFielddraw it wheninCellis set:type="number", right-aligned, and keepreadBadInputand theBadInputMessagerefusal (drawn under the row).%after and has no slider.RatingFieldinCell: smaller stars in a 28px row, no "n / max" caption.RatingCellRendererstars carrydata-rating-star={n}.Layer (
@object-ui/components,dataTableCellOverlay.tsx):has-[[data-in-cell-face=input]]drops the layer's padding, radius and shadow, keeps a 2px border on the page background, and sets its minimum height to the anchor height.!, because the console theme rounds and lifts every[role=dialog]with!important(apps/console/src/index.css), and the layer is a Radix popover. An important utility sits in a cascade layer and outranks the unlayered rule. This was found in the browser and is not reproducible in jsdom.h-8skips[data-in-cell-input].Grid (
data-table.tsx,ObjectGrid.tsx):builtInEditorWidthClassandcellEditorWidthClass:w-full, the cell's own width, where S1 hadmin-w-40.min-w-56.describeCelladdsstars(the field'smax, default 5) forratingfields.attemptEditopens no editor for such a cell.min(digit, stars), and 0 clears. A digit sets at most 9, so the top of a wider scale is set by a click. Thestarsfact is floored before its> 0test.data-rating-starof the already selected cell sets that count.writeCell, so it saves and undoes like any cell write.Record pickers (
LookupField,PeoplePicker,recentLookups):LookupFieldwithinCell(and not disabled) renders its panel body inline in the layer, not in a portal popover, because the layer's focus loop would take focus back from a portal.PeoplePickergets the newembeddedprop.browse-all-records, gated bydependsOnlike the form's button) and Clear (lookup-in-cell-clear, while a value is held). A single pick in Browse all's dialog ends the edit as a list pick does:handleDialogSelectRecordscallsonCommitafter the declared targets fill. A multiple pick stages.dependsOngate shows as a hint in place of the list (lookup-in-cell-gated).onChange, thenonCommit. A multiple pick stages. Enter that picks callsstopPropagation, so the grid's wrapper does not commit a second time with the pre-pick value.recentLookupskeys the ring as<prefix><userId>:<object>when a user is signed in (usePermissions().userId). With no user, the key is unchanged. Rings stored under the old object-only key are not read, so a signed-in user's recents start empty once after the upgrade.Text (#35794):
docs/qa/platform-checklist/areas/records-forms.json.form-view-galleryandv18-semantic-defaultsmove to revision 9, with history entries, and now describe the select-first list with no switch.examples/app-showcaseTask Desk text: "Click a task's title to edit it in a drawer".Why
Card #35688 sets this target:
#36023 adds that the row height does not change and the cell itself is the input, with no inner box. S1 put every editor on a layer over its cell, and S2 gave the pickers their in-cell faces. This slice gives the remaining kinds theirs.
Tests
New in
ui/packages/fields/src/__tests__/inCellFaces-35688.test.tsx:%and no slider, and a bad number refusal.inCell.New in
ui/packages/fields/src/widgets/recentLookups.test.ts: per-user rings, and the CONTROL key with no user.New in
ui/packages/components/src/__tests__/data-table-cell-overlay-35688.test.tsx:Changed in the same file: test 3 now expects no
min-w-40on a typed editor. The typed kinds now start at the cell's width.New in
ui/packages/plugin-grid/src/__tests__/inCellSelectMultipleRouting-35688.test.tsx(realObjectGrid→data-table→ fields): a lookup pick ends the edit; a single pick in Browse all's dialog closes the editor and saves{ tier: 'silver' }throughds.update(fails with the commit removed); a rating digit saves throughds.update.Changed in
ui/packages/plugin-grid/src/__tests__/gridDependentValues-7165.test.tsx,lookupPickerKeys-7154.test.tsxandrelationalMetaCopySet-7166.test.tsx:openEditorreturns the in-cell panel and Escape is sent where focus is.dependsOngates (hint, Browse all disabled, no options) and scopes the query;multipleaccumulates (twoaria-selectedrows) while single replaces;allowCreate;lookupPageSizethrough Browse all (3 rows against the default 10); anddescriptionField,lookupColumnsandlookupFilters.Changed in
ui/packages/plugin-grid/src/__tests__/inlineEditExitMode.test.tsx: the two lookup exit-mode cases pinned the popover era, where a pick staged and a click outside committed. They now pin the in-cell list: a pick lands and closes the editor, a press inside the open list keeps it, and a press outside exits (CONTROL). The four text-editor cases are unchanged.Changed in
ui/examples/schema-catalog/test/form-field-channel-census-12130.test.tsx: theinCellandonCommitledger rows name the 13 widgets that now read them.Local runs (before the last Browse all and theme commits):
@object-ui/fields@object-ui/components@object-ui/plugin-list@object-ui/plugin-gridThe 11 plugin-grid failures were the three picker suites above. After the fix they pass (14 of 14), and
inCellFaces-35688with the grid routing test passes (34). The overlay test passes after the theme fix (12).tsc --noEmitis clean for fields, components and plugin-grid. eslint on the changed files: 0 errors.node scripts/check-platform-checklist.mjspasses.Acceptance notes
grid.readOnlyReason.*, so they need no code. Measured below.size-8in apy-1cell) makes its row 41px where other rows are 32px. Opening that cell's editor swaps the chip out, and the row drops to 32 (列表格内编辑重做:编辑时行高不变,不再把表单控件塞进格子;每种字段类型固定用「原地输入、直接弹出、直接操作」三种做法之一 #36023 「行高不变」).UnresolvedUserReference) until the row is fetched again. A lookup to an ordinary object shows its name.scripts/pm/overlap-check.mjs, clean): fix(grid): in a list cell a single click only selects; no copy buttons (#36015) #36033 (data-table, fields index), feat(console): a change on a list is a draft, with Discard and Save (#35955 PR 1) #36026 (records-forms.json) and feat(list): a phone list gets its own top row, one row of pills, and bottom-sheet sort, filter and view panels that apply on ✓ #36024 (ObjectGrid) all merge cleanly. S4 and S5 share data-table, ObjectGrid and LookupField; whichever lands second merges main.Verification
Browser: showcase field zoo with a temporary 22-column view, name column frozen (not in this pull request), in Chromium. Runs at 1280 light, 1280 dark and 768 light; at 375 the list is the phone card list, with no in-cell editing. Script, screenshots and readings are in the project folder
build-seat1/35688/S3/(s3.cjs,shots/,browser-evidence.md).7;USDbefore an empty amount;50with%; row unchangedTwo-minute check: open any list with a number column, select a cell and press F2 (the cell itself is the box, right-aligned, row height unchanged). Then select a rating cell and press 4.
Human Minimum
packages/specholds no runtime logic. (not touched)pnpm lintpasses.main, one pull request.packages/spectouched: n/a.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgTJobxYSxskrNbCuHE